#!/bin/bash -e

function info() {
echo Usage: `basename $0` cmd
exit 65
}

while getopts ":p:l:" opts
do
case $opts in
	l) interval=$OPTARG;;
	p) out_prefix=$OPTARG;;
	\?) info;;
esac
done
shift $(($OPTIND - 1))


. $var

. $cmd_done